package com.ruoyi.common.constant;

public interface ErpEnums {

    public enum SurfacePrintStatus {
        /**
         * 正常
         */
        NOT_PRINT(0, "未打印"),
        /**
         * 暂停
         */
        PRINTED(1, "已打印");

        private Integer value;
        private String content;

        private SurfacePrintStatus(Integer value, String content) {
            this.value = value;
            this.content = content;
        }

        public Integer getValue() {
            return value;
        }

        public String getContent() {
            return content;
        }

        public String getContent(Integer value) {
            if (value == null) {
                return "";
            } else {
                String content = "";
                for (SurfacePrintStatus sp : values()) {
                    if (value == sp.getValue()) {
                        content = sp.getContent();
                        break;
                    }
                }
                return content;
            }
        }
    }

    public enum SendPrintStatus {
        /**
         * 正常
         */
        NOT_PRINT(0, "未打印"),
        /**
         * 暂停
         */
        PRINTED(1, "已打印");

        private Integer value;
        private String content;

        private SendPrintStatus(Integer value, String content) {
            this.value = value;
            this.content = content;
        }

        public Integer getValue() {
            return value;
        }

        public String getContent() {
            return content;
        }

        public String getContent(Integer value) {
            if (value == null) {
                return "";
            } else {
                String content = "";
                for (SendPrintStatus sp : values()) {
                    if (value == sp.getValue()) {
                        content = sp.getContent();
                        break;
                    }
                }
                return content;
            }
        }
    }

    public enum OrderStatus {

        Awaiting_Action(10701, "Awaiting Action"),

        Confirmed_Order(10702, "Confirmed Order"),

        Shipped_Order(10703, "Shipped Order"),

        Delivered_Order(10704, "Delivered Order"),

        Canceled_Order(10705, "Canceled Order"),

        Return_Received(10706, "Return Received"),

        Have_Multiple_Status(10707, "Have Multiple Status"),

        Abnormal(10708, "Abnormal");

        private Integer value;
        private String content;

        private OrderStatus(Integer value, String content) {
            this.value = value;
            this.content = content;
        }

        public Integer getValue() {
            return this.value;
        }

        public String getContent() {
            return this.content;
        }

        public String getContent(Integer value) {
            for (OrderStatus os : values()) {
                if (value == os.getValue()) {
                    return os.getContent();

                }
            }
            return null;
        }
    }
    public enum Delivered_state {
        /**
         * 未发货
         */
        WFH(0, "未发货"),
        /**
         * 已发货
         */
        YFH(1, "已发货"),
        /**
         * 	已签收
         */
        YQS(2, "已签收");


        private Integer value;
        private String content;

        private Delivered_state(Integer value, String content) {
            this.value = value;
            this.content = content;
        }

        public Integer getValue() {
            return value;
        }

        public String getContent() {
            return content;
        }

        public String getContent(Integer value) {
            if (value == null) {
                return "";
            } else {
                String content = "";
                for (Delivered_state sp : values()) {
                    if (value == sp.getValue()) {
                        content = sp.getContent();
                        break;
                    }
                }
                return content;
            }
        }
    }

}
